-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2013 年 05 月 19 日 16:42
-- 服务器版本: 5.5.24-log
-- PHP 版本: 5.3.13

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- 数据库: `pri_yishouce`
--

-- --------------------------------------------------------

--
-- 表的结构 `shouce_book`
--

CREATE TABLE IF NOT EXISTS `shouce_book` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `book_id` int(11) unsigned NOT NULL,
  `section_id` int(11) unsigned NOT NULL,
  `item_name` char(15) NOT NULL,
  `func_name` char(60) NOT NULL,
  `book_title` char(90) NOT NULL,
  `title` char(90) NOT NULL,
  `title_en` char(90) NOT NULL,
  `content` text NOT NULL,
  `content_en` text NOT NULL,
  `pre` int(11) unsigned NOT NULL DEFAULT '0',
  `next` int(11) unsigned NOT NULL DEFAULT '0',
  `cr_time` int(11) unsigned NOT NULL DEFAULT '0',
  `user_id` int(11) unsigned NOT NULL,
  `sup` int(11) unsigned NOT NULL DEFAULT '0',
  `opp` int(11) unsigned NOT NULL DEFAULT '0',
  `flag` tinyint(3) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `book_id` (`book_id`),
  KEY `section_id` (`section_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=812 ;

-- --------------------------------------------------------

--
-- 表的结构 `shouce_book_back`
--

CREATE TABLE IF NOT EXISTS `shouce_book_back` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `book_id` int(11) unsigned NOT NULL,
  `section_id` int(11) unsigned NOT NULL,
  `item_name` char(15) NOT NULL,
  `func_name` char(60) NOT NULL,
  `book_title` char(90) NOT NULL,
  `title` char(90) NOT NULL,
  `title_en` char(90) NOT NULL,
  `content` text NOT NULL,
  `content_en` text NOT NULL,
  `pre` int(11) unsigned NOT NULL DEFAULT '0',
  `next` int(11) unsigned NOT NULL DEFAULT '0',
  `cr_time` int(11) unsigned NOT NULL DEFAULT '0',
  `user_id` int(11) unsigned NOT NULL,
  `sup` int(11) unsigned NOT NULL DEFAULT '0',
  `opp` int(11) unsigned NOT NULL DEFAULT '0',
  `flag` tinyint(3) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `book_id` (`book_id`),
  KEY `section_id` (`section_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=812 ;

-- --------------------------------------------------------

--
-- 表的结构 `shouce_course`
--

CREATE TABLE IF NOT EXISTS `shouce_course` (
  `id` int(11) NOT NULL,
  `item_name` char(15) NOT NULL,
  `show_name` char(30) NOT NULL,
  `uri` char(20) NOT NULL,
  `title` char(250) NOT NULL,
  `content` text NOT NULL,
  `cr_time` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- 表的结构 `shouce_func`
--

CREATE TABLE IF NOT EXISTS `shouce_func` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `item_name` char(15) NOT NULL DEFAULT 'other',
  `func_name` char(45) NOT NULL COMMENT '函数名或描述名',
  `func_note` char(90) NOT NULL,
  `content` text NOT NULL,
  `content_en` text NOT NULL COMMENT '英文内容',
  `user_id` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '最后编辑用户id',
  `cr_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '提交时间',
  `sup` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '顶',
  `opp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '踩',
  `class` char(30) NOT NULL COMMENT '分类',
  `flag` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '通过与否的标识',
  PRIMARY KEY (`id`),
  KEY `func_name` (`func_name`),
  KEY `item_name` (`item_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6017 ;

-- --------------------------------------------------------

--
-- 表的结构 `shouce_tree`
--

CREATE TABLE IF NOT EXISTS `shouce_tree` (
  `node_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '树节点id',
  `node_name` char(30) NOT NULL COMMENT '节点名字',
  `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父节点id',
  `node_note` char(20) NOT NULL,
  `sort` tinyint(3) NOT NULL DEFAULT '0' COMMENT '排序 数值大的在前',
  `note_path` char(250) NOT NULL COMMENT '节点路径,用'',''隔开.如:1  1,2,    1,2,3,6',
  PRIMARY KEY (`node_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='属性关联表' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- 表的结构 `shouce_user`
--

CREATE TABLE IF NOT EXISTS `shouce_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` char(30) NOT NULL,
  `email` char(30) NOT NULL,
  `password` char(32) NOT NULL,
  `cr_time` int(11) unsigned NOT NULL DEFAULT '0',
  `power` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `verify` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否验证邮箱',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
